<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.pro.bean.*"%>
<% String username=request.getParameter("username");session.putValue("username",username); %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <base href="<%=basePath%>">
    <title>名片管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script type="text/javascript" src="js/jquery .js"></script>
	<script type="text/javascript" src="css/bootstrap.js"></script>
    <link href="css/bootstrap.css" rel="stylesheet">
    
    
    <script language="JavaScript">
	var curpageid = 'card';
	function clickli(lid)
	{
		var li= '#'+lid;
		$('#'+curpageid).removeClass('active');
		$(li).addClass('active');
		curpageid = lid;
	}
$(function(){
	var headul = $("#headul");
	function clickli(lid)
	{
		alert(lid);
		var li= '#'+lid;
		$('#'+curpageid).removeClass('active');
		$(li).addClass('active');
		curpageid = lid;
		alert(1);
	}
});
</script>

  </head>
  
  <body>
<div id="bodydiv" style="width:900px;margin:auto;">
	<div>
		<div style="float:left">
			<h3 class="text-muted" float="left">欢迎使用名片管理系统</h3>
		</div>
		<div style="float:right;margin-top:22px;margin-right:10px">
			<ul class="nav nav-pills">
				
				<li>当前用户：<%=((Users)request.getSession().getAttribute("Users")).getUsername() %></li>
			<li>mima:<%=((Users)request.getSession().getAttribute("Users")).getPassword() %></li>
			<li>mima:<%=((Users)request.getSession().getAttribute("Users")).getLastlogtime() %></li>
			</ul>
		</div>
	</div>

	<br> <br> <br>

	<div id="daohangdiv" style="margin-top:4px;" >
		<ul id="headul" class="nav nav-pills">
			<li id="card" onclick="clickli('card')" ><a href="scypage/card_management.html" target="content">名片信息管理</a> </li>
			<li id="group"  onclick="clickli('group')" > <a href="wlpage/groupMain.html" target="content">名片组管理</a> </li>
			<li id="add" onclick="clickli('add')" > <a href="scypage/addcart.html" target="content">添加名片</a> </li>
			<li id="log" onclick="clickli('log')" > <a href="cbxpage/view_log.html" target="content">浏览日志</a> </li>
			<li id="sameperson" onclick="clickli('sameperson')" > <a href="gxrpage/$$$$$" target="content">同一人物设定</a> </li>
			<li id="view" onclick="clickli('view')" > <a href="cpfpage/View.html" target="content">公司/部门视图</a> </li>
			<li id="file" onclick="clickli('file')" > <a href="cpfpage/FileImport.html" target="content">文件导出</a> </li>
			<li id="info" onclick="clickli('info')" class="active"> <a href="cbxpage/modify.jsp" target="content">个人信息</a> </li>
			<li><a href="#">退出系统</a>
			</li>
		</ul>
	</div>
	<br>
	<iframe src="card_management.html" name="content" width="900px" height="900px" frameborder="no">
</div>
  </body>
</html>
